#include <SFML/Graphics.hp>
#include "Components.h"

using namespace sf;
using namespace std;

InputControlComponent::InputControlComponent(Input& Input)
	: input(Input)
{
    
}

void InputControlComponent::Update(Entity& entity)
{
    if (input.IsKeyDown(Key::W))
        entity.Move(Vector2f(0, -entity.Speed()));

}

void AIControlComponent::Update(Entity& entity, vector<Entity*> entities)
{

}

void CharacterPhysicsComponent::Update(Entity& entity, vector<Entity*>& entities, float gameTime)
{

}
